import request from '@/utils/request'

export function getListPage(params) { // 获取收益列表
  return request({
    url: '/statistics/statisIncomeList',
    method: 'get',
    params
  })
}

export function getStatisIncomeInfo(params) { // 获取详细收益
  return request({
    url: '/statistics/getStatisIncomeInfo',
    method: 'get',
    params
  })
}

/**
 * 获取账单信息列表
 * @param {Object} params
 * userId 用户id
 * startTime 开始时间(2020-10-10)
 * endTime 结束时间(2020-10-10)
 */
export function selectExeclList(params) {
  return request({
    url: '/selectExeclList',
    method: 'get',
    params
  })
}

export function exportExcel(params) { // 导出账单信息列表
  return request({
    url: '/exportMyExcelList',
    method: 'get',
    params
  })
}

export function findconsumptionTrends(params) { // 获取收益统计表
  return request({
    url: '/statistics/findconsumptionTrends',
    method: 'get',
    params
  })
}
